//
//  ClerkCell.m
//  ScalperMerchant
//
//  Created by 王云 on 2017/10/6.
//  Copyright © 2017年 WY. All rights reserved.
//

#import "ClerkCell.h"

@implementation ClerkCell

- (void)awakeFromNib {
    [super awakeFromNib];

    _delBtn.layer.borderColor = WYColor(232, 66, 66).CGColor;
}
- (IBAction)delClick:(id)sender {
    
    if (_click) {
        _click(self);
    }
}
- (void)setDic:(NSDictionary *)dic{
    _dic = dic;
    
    _nameL.text = [NSString stringWithFormat:@"%@",[_dic hw_safeObjectForKey:@"member_name"]];
    if ([[_dic hw_safeObjectForKey:@"w_type"] integerValue] == 1) {
        _delBtn.hidden = YES;
        _iconImg.image = [UIImage imageNamed:@"zhu"];
        
    }else{
        _delBtn.hidden = NO;
        _iconImg.image = [UIImage imageNamed:@"yuangong"];

    }
    
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
